fixed bug in debug setting for recordsweep