fix function of imput month