fixed window leaked