callocs and fixed Trap table init