trackchanges: fix initialization and enabled checking