fix bug and ResponseMapping type