To save events had not numbered sequentially. Check that everything works to increase counter.