Fix bug in resizeable selection