Fixed getPosition in setRangeShape method