BugFixes for sending response