NPH fix: prevent offsets from going over period limit
Forgot to remove qdebug
Merge pull request #993 from diizy/master

NPH fix: prevent offsets from going over period limit