Code is ok on win, R plot bug on linux, fix for plot 1