Category entity relationship mapping fix