fixed bug for displaying start and end months when they are not same