Prevent some accidents when opening the recipes window.