Fixed bug related to weird range selection behavior when finishing
creating a object (issue #380)