Fix undefined var error from previous tweak to locations requirements