fixed bug with sync messages