bugfix in error template