Flapper won't close causing toilet running

My toilet flapper will not close properly sometime. it will keep the toilet running for a long time. Today I fixed the problem by filing the inner edge of the drain hole to make it easier for the flapper to sit in properly. if you have similar problem, it should have fixed the problem for you as well.