Fixed handle-condition to use error pages.