Automatic exam correction