fixed an issue with non-enumerable keys