properly checking index bounds in hologram callbacks, avoids potential crash in update when invalid ones are passed