fixed some scannere error throws