Fixed LINEMAX definition bug