fix incorrect heading depth