bugfix in mesh debugging