fix checking for properties