Properly working location table