Fixed bug in ApiResponse