Bugfix assign: extract module context correctly