bugfix regarding error pages