I was pulling my hair out on this last week too but didn't manage to nail it down to what was going wrong. Thanks for reporting/fixing it :)