attempting to fix sync bug