fixed a bug that set all start and end times to 0; Also now it