fixed a catalog bug in working with visit id