Fixed bug where LABFLAG was used instead of LAB_FLAG.