some debug fix of plot