fix errors while testing with localize