Fix print function.