fix tplSettings error issues