Fixed print bugs