fix automatic run