fixed validation error for piece-costs