fixed null pointer if property not provided