Fixed bug when no scanned text available