fix broken custom template