Fixed minor errors to allow for error-free earl-report generation