many bug fix found with auto tests
better fix for crash on second call on InfoDialog stuff