fixed bug with saving current user to window