fix numeric value comparisons

fixes #11