fix bug on run()