geometry debug bug fix