Fixed crash when changing arrow type during selection