fixed small bug about major