Next-in-line effect

We tend to forget things that happened just before we have to perform something.

This might happen because we tend to mentally go over our material before performing - focus on that causes us to lose focus on external events.