Bug fix: set currentTemplate not get