fixing calendar time error