Fixing camera sync bug