Handled arr[-1] and merge issues