Fixed a bug in not updating sweep