Prevent NaN inside arrow