Try to fix error with response committed before do anything else