data formatting bug fix