fix label displaying issue