fixed print-ast errors

closes #51