disallow a negative idx parameter
merge 3.2
fix poor spelling
merge 3.2