another error-related bugfix