Bug Fixes and Improvements in Error Reporting