Fix compile error after deleting variable