Fix the SetPosition method (issue #36)