fix capture template