bug fixed when major.by is set