1099-q issues

My daughter had w2 of $1900 and owe nothing but when I put in the 1099-q which all money went to the school, she will owe money now. Why? I thought 529 withrawal is non-taxable if all used for qualified school expense.