Fix entity detection in smelteries