Fix pie to skip undefined values.