bug fix to ambiguous location