Fixed logging message for incorrect entity references