fixed a very tough logic regression for figure labeling
figure/subfigures in LaTeX finally works in a desirable way using subfig