Fixing the fx generated classes. If pk is EmbedaleId the template not work correctly