Fix bug when selecting 12AM