fix regex regex
fix error reporting