fix spatial widget, various small fixes