fixed small bug in df_mismatch calculation