Fixed wrong detection of invalid time frame in constructor