fix texture slot count