Modal dialog size was wrong simetimes