fix some annoying index out of bounds exception thats been around forever