[templates] Fix bugs in paint template after update to base