fixed issue where class was returning a positive result where it should not be