Bug Removed

There should now be no index out of range exceptions ocouring