fixed 24 hours problem