Fix duplicated references.

This should make the Travis build pass.