When a toilet is flushing on its own, replacing the flapper will fix the problem most of the time. If this doesn't work, try replacing the fill valve that is connected to the flapper. \