Fixed issue when giving a vector for error.proportion