fixes #2: fix a bug that could not disable styling when using sync template method