fix for not updated current selected spatial table