Fix close warning