Fix bug walking on module list.