Fixed bug for writing 0 cost after every cost in firm