FIX: handling bad data when exporting to fieldtrip