Fixed errors in NanoUI templates.