scanner bug fix