circlar median and bootstrap bugfix