fixed API controller and Report model