Fix for popups not auto-closing when they were supposed to.

Signed-off-by: Scott McClaugherty <gamefreak4321@gmail.com>