Fix group z-index. Closes #967