popup fix

@danielfrndz Fix for popup.