Fixed bug in measure_size_response

Bug caused max_size parameter not to be applied