Fix bug in time selection directive.