Fix bug opening dialog where pick the hour