Fix the order of DSL definitions caused errors

A fix for #23.