fix commands not being removed

Should fix #245 :smirk: