fixed non-lib file bug (epid = -1)