fix 24 hour bug