fixed responses page crashing when sort POST data was incorrect