Synchronizing code of fragments