Fixing NEP that happens when two works are equals without external ids