fix a bug of error logging during deletion of landmark