fix errors in some models