fixed initial cost bug