Update error function on getPosition