fixed broken toggle