fix dialog positioning