Fix notice "Undefined index: properties"