fix errno bug in kyoto engine