Fix loop and user_action method.