fixed dev.off() issue