Fixed bug with scanner count