Fixed a bug causing the scanner to fail, if the fetched file was named like a default method like 'toString'