fixed wrong modules detection (thx mac)