fix use of local