Fix bug "returnData" variable declare incorrect place