correct malformed tabs