Fixed bug in pest pk creation.