fixed bug in labels function