Fixed #46. There was a check that should have been i < 4 but it was i < 3.