fixed bug with sync messages in the last slot