This MR fixes #2297 (closed). The issue happens because we forget to assign the return value to ASSIGN_NEXT.