names to labels error fixed