Moved the heapalloced flag from init to new for ws_named