fixing bug with properties editor