Fixing bugs regarding accessing locations that are not exactly within the ranges in the db