Fixed some bugs with moving a selection