fixed error in magnacarta

fileID was hardcoded to 1 in selectAppFile...