Fix empty popups on error