Fixing start-time end-time functionality.