However, the Pri Megadim explains that this is only true if he sins for self-satisfaction, but if a person sins to spite God or has openly severed their connection with the Jewish people by professing a hostile creed or by publicly desecrating the Shabbat, such a person is prohibited from constituting a minyan.