Fix entity name in queries.