Fixed a logic error, also fixed some old print hooks.