Fixed bug while handling results in supervisor