Fixes bugs relating to reflexion and index out of bounds

I goofed hard on that prior commit! It should work now :)