Trying to fix issue with location parameter