max.h error correction