Fixed error when toggling, uses this instead of element