update styles, fix null pointer when depending on non-exist templates
2.0-RC release