fix conditional li problem