Fix for custom toggle buttons when changing specs