fix for pig type