Update to version 4.2.2

Update to hash update to check for invalid keys and values