Cost bug fix