Advanced Machine Texture Fix

Some fix for Advanced Machine 1.6.4!