fix when solution deleted can still add solution test