Hide window and fixed recursion limit