fixed bug with not synchronising