Typo fix, replace pos.y with correct pos.x

Without this fix it's not possible to retrieve correct position