Fixed a problem that prevented the direct print option to function at all