Hey I was having the same problem but i think i found some kind of solution for me.
The thing is that I was using my expression in a 4 frame long comp with time remap then my main comp was 3 min long and it was also in time remap I remove this time remap and make every comp 4 min long.
If any one needs a more detail explanation pls contact me or reply something in here.
thx