fix undefined return for createorder