fixed a couple texture linking problems