controller:lib: Fixed object deletion error.