fix for multiple pie charts intermingled with other elements