Change [env.eq] to [env.equation] (and save five lines of code:-)