Fixed bug in run