fixes: initial position calculation throwing error