fixing malloc error with world being a thread local