fixed array out of bounds in UserDBManager