Fixed a typo in the mipmap chaining code