Fixed two bugs.

Fixed an instance of fuzzy matching of ids with the use of messages.
Caught an uncaught flash which caused it to show up on the wrong pages.