Fixed a small bug in print js