fixed bug with labels