fix errors in view editing