Fixed a bug where the selection of features is off until the window resizes.