fixed a small bug with labels