Fixed a bug with the subcase action creation