modify template complie bug