Fix crash when exclude_mp is set to False