Fixes building history of watch_profile table.