Fix print multiple times bug'