Fix duration check

This PR fixes #53.
typo: "milliseconds"