Fixing replaceBOOL argument init for backward compatibility