fix bug with get position button