fixed threading problem with command dict resizing during iteration