fixed bug in plotAbs