fix for #40 - remove misplaced (and redundant) check

close #40