Fixing function error, removeing settings ajax set for region