fixed some order in events proced by commands