Fix before_install duplicate keys