Calculate base position properly