bug fix (c)