lockRefresh now working fine