Fixed bug in model that made events not have end time