Until the tune comes readily to mind, knowing what comes next in the piece, practice some more. In the nervousness of the lesson, it's surprising how much that was thought to be well in mind just slips away.