Fixed a bug accessing inherited properties