Fixed bug with checking for getSmoothedPosition