Fix bug in request saving code