Fix bug in get_obs_pred_frequency