fixed wierd dialog problems