Fixed position problems of dialog