fix Singleton module bug where first instance created loses model reference