Local->global coordinate conversion is finally working