Fixed set methods that were causing IndexOutOfBounds exceptions