Fix exports detection