Fix Index out-of-Bounds Error

The only change was adding line 45 to verify that line 46 would not get
an index out of bounds error. Everything else just needed to be tabbed
over.