Je gebruikt de gerund na bepaalde werkwoorden zoals
to hate, to like, to stop, to prefer, to enjoy, to avoid, to remember, to refuse, to mind, to keep, to spend.
So you have stopped biting your nails!
Why do you always try to avoid meeting him?
I don't mind travelling by train every day.