Fixed error on scan rules