Corrected bug in print