Corrected error if object not present.