error doesn't change buffer
check region