         submits.splice(0, 0, submit0)
         if not req.user?.admin
             submits = submits.map(hideTests)
-        submits = submits.map(expandSubmit)
+        submits = submits.map((s) -> expandSubmit(s))
         submits = await awaitAll(submits)
         res.json(submits)
 

        submits = submits.map((submit) -> submit.toObject())
        if not req.user?.admin
            submits = submits.map(hideTests)
        submits = submits.map(expandSubmit)
        submits = await awaitAll(submits)
        res.json(submits)


                console.log "Bad findmistake ", mistake._id, mistake.submit, mistake.correctSubmit
                await mistake.setBad()
                continue
            submits = submits.map((s) -> expandSubmit(s))
            submits = await awaitAll(submits)
            count = await FindMistake.findNotApprovedCount()
            res.json({mistake, submits, count})
