couple error fixes