fixed global leak in popChanges