bugfix for window raising