fixed minor detail in setLoc()