Fixed sanity check
Merge pull request #1 from joek/master

Fixed sanity check