fix for toggle element