LPS-40123 Possible Solution to avoid the race condition