Fixed the skipping print bug