Fixed some mistakes

Finally got an account to test, fixed some out of range errors