How to do position correction “on the fly”