Fixed wrong default value if either the start or the end time is not provided.