fixing missing locals