Fixed bug where the end time was set even if the user didn't set it.