update Automation.php (should to optimize the server speed, especially when server have big map)