fix #110 so that rights dialog can be closed