Working on the bug, the actual location of the fix should be changed to always initialize the factory with the correct state