Fixed typo on categories condition.