Fix usage of putIfAbsent