fix clear-locals pass