Dialog Bug and some small problems fixed.