Fixed some critical bugs in the agent loading that was truncating the brain and making them retarted