Clean up nextaction() now that the actions are all set