fixed returning to previous window.