fix list append and prepend with empty lists