Fixed issue in PrimaryField for VS compiler.