fixing bug in properties