[Crash]Refactor simulated actions and fix bugs