fixing issye with scan debounding