little fix to window open