eh... fixed wrong time comparison, switched before and after