Revert putIfAbsent to orginal code