Fixed a problem with the selection box visualization