bug with checking for invalid entry index. anything invalid is zero, and 0 itself is a valid choice I can't mix up...