Fixed incorrect variable in sendToPull function