fixed bug in response finalization