Fix a couple comparisons

This resolves #5