fixed pig issue