fix category nil blowup