Oops: was broken if categories[] empty