Make li hack work properly