fixed 1 am bug