Improved the error window