Deductions & credits

You are confusing credit for a dependent which his age excludes with credit for other dependents ($500) which he qualifies for.