fixed spec print problem