Fixed issue with incorrect classname causing deletion to fail.