Fix primitive loading.