Fix incorrect call of destroyed arrow in show loading function