removed window dismiss bug

Signed-off-by: premek <premekcech@seznam.cz>