[fix] create errors in proper place