fix errors in src directory