Fix scan

Signed-off-by: Diwank Singh <diwank.singh@gmail.com>
Fix waiting queue

Signed-off-by: Diwank Singh <diwank.singh@gmail.com>