fix lastsample frequency for change events