fix profile script & template