fixing bug with callback functions not thinking they have enough data