Retirement tax questions

Shouldn't I withdraw the excess contribution in 401k with 10% penalty? Otherwise, it seems I will have to pay 6% tax every year on the excess amount and earnings?