[3.0] Fix the warning log causing the wrong position