fix Issue 11513 - Assertion in module.c