fixing property use in condition