Change print method to erase race bug