fix mismatched return type on view category