Fixed response so that it can be turned into xml