Bug fix on unable to get all keys from properties object