Memory hiccups and how to prevent them