fixed issue with incorrect reference in detemrining required properties