fixed closure compiler error on delete function