fix bbox location sql