Fix chain definitions