Fixed interval check
Merge pull request #1 from freeall/interval-fix

Fixed interval check