Generator pk fix