Make sure to flush after creating sync object