Fix another logic error where 2 is considered composite