Fixed m2m issue, removing data when all relations are removed