Fix for the lookup button if error reporting is enabled.