Fixed assignment delete code