Fix instance allocation
Merge branch 'master' of github.com:typhoon-framework/Typhoon