fix null pointer when no label has been set