fix bugs "Response Already Committed"