Fixed bug in comment reader and added idf_getfield() call