Moved the heapalloced flag from init to new for ws_named

Seems to be not on purpose...