bug 365 fixed: categories.rank was limited to 255 due to storage limitation. Maximum is 65535 now (should be good for a long time).