fixed invalid normalizing