Trying to track down resize bug
Fixed resizing bug