Bug fixes on generation of init actions.