fix arrow closing issue