added missing X_MAX_POS, Y_MAX_POS and Z_MAX_POS variable