fix locations SQLView