Fixed trim bug in properties