buglet: test the mode before clobbering it, not after
buglet: test the mode before clobbering it, not after
FranklinChen/Hugs,FranklinChen/Hugs,FranklinChen/Hugs,FranklinChen/Hugs,FranklinChen/Hugs,FranklinChen/Hugs,FranklinChen/Hugs