Fix location assignment.