fixed errors preventing us from getting data