fixed custom binding for popup.