fix distinct