Fix the issue in the API of creating report