(GX) workaround weird bug in file detection