Solved bug that made impossible to open a window when another application was active.