fixed errcode