We offer you this space to share your knowledge about Magento and learn from our experienced customers.
the code is correct.
Please check if the category have the id 189. Check if it is "enable".
Did you try with other ID?