Fixed a bug when jumping around and when having empty arrays