bugfix viewbox query and clear debug logging