fix bad loc param