Fix for widget window and PDF display