Fix dict changed size bug, document event scope