fix bug with camera pan, make it go to extent that is possible