Fix presence , register templates