Fixed bug while running.