fix bug for dev.off when disposeR = FALSE