fixed bug in plotit