Issue #5703: Fix bug about position