fix detcat_num (issue #625)

On old categories view it must be set to 0, on categoriesdetailed view it is already set so 0 is overwritten by original value.