bugfix: do nothing if window is too small