fixed the 'all-day' error that users were having