clear the panel when type checking