fix distinct type popup