bugfix in bounds calculation of triangle4 and triangle8