fix broken respond_to block