Fix bug for next_ui option not working