Fix some error code