Fixed empty pattern incorrect input data handling
Fixed Error30 crash
Polished error messages