fixed create spend bug