fix bug when hour at 12 and am