Fixed fps sync bug