check in debug that your models filled correclty.
which scope calendarHeader has?
The issue got solved. The var "header" which i was using to reference the list, was actually the header of a request. (Networking) so i changed the name and it worked fine.
Thanks a lot for your help.