fix errors in setup