Fix startup crashes due to too small locals size.
Merge pull request #100 from Hidendra/fix/startup

Fix startup crashes due to too small locals size.