fix some memory management stupidity for Assignments