fix bug in respond_with