Code compiles again after deleting modify card