remove data from M:N table which points to non existent data

this address bug in code, which was addressed in commit e7e943d