fixed scanning exception