Fixed wrongly used print function