Fixed so valign dialog state gets updated properly.