Fix bug where it wasn't storing min time correctly