Fixed crashes, AllObject gets hash directly, improved some functions