Fix bug throw error when _handle is undefined