fixed bug in datatable_apply_user_settings