bug fix in data normolization