Add filter for NaN's in phase solutions