Fixed auto-script