Fix minor bugs.
Bump to version 0.1.3
Fix template error.