Fix problem when using module in certain 'this' contexts.