Zend certified PHP/Magento developer

Convert system url categories

I have a store view:

 - Default
 - First store
 - Second store

The second store has a problem with the categories

First store – its URL looks like this: firststore.com/category-name/

when i go to the category Second store – its URL looks like this: secondstore.com/directory/category/view/s/category-name/id/111/

URL modules that should work with categories do not work correctly on the second store, tell me how to convert URLs to secondstore.com/category-name/