code error fixes