while retrieving the id, look up for the model name if the current name is empty