fix server platform based on template