fixing empty dialog bug, erasing time spans