BUG-576: fixed invalid key used to search map of modules.