Error check for IDF