fixed semimonth bugs