Fix offline wrapping to respond correctly