Fixed the logic error
Merge pull request #37 from roaet/fix_derp

Fixed the logic error