Fixed bug in sqw-sweep