Wrong type of error thrown from scan-lists