fix for multiple buttons in derivate template