Fixed compile errors in print