fliter out the wrong result from adjust fan code

* Fliter out the wrong result from adjust fan code
* Some code style cleanup