clearLocal fix