Fix incorrect indexing when reading RF event
rf_from_lib_data() now reads values from lib_data correctly