Fix double running of env.execute()