Fix code when label is empty