Fix Null pointer exception: Initialize the ValueToKeyMap