Fixed a crashing bug, added OnPostInitialize global callback