Bug fix: infinite loop while looking for top point with indent method