fixed invalid print