fixes in various microtexture codes