fix bug in nolocs