fix errors on rhodecode