Fix some bugs in the label assignment to src.