Well I'm not sure if this is the correct way to do it but this works.
sync()
sync()
sync()
sync()
sync()
sync() 5 times works fine .
I've found 7 times works the best . Just thought I would share . If anybody knows a better way and there must be one please feel free to enlighten me . Thanks for the help.