Even when the noun is in singular genitive, adjective should be put in plural genitive. Две чёрных машины, not две чёрной машины. Also sometimes when the noun is feminine, adjective is nominative...