Corrected yet another bug with the chrome-removal code.