Fix wrong transitive lookup creation.