Select list item error: “Attempt to get item number 0” (but logic seems correct)

Since the forward and backward buttons are not declared in the button list, the error is inevitable.