Merge pull request #16041 from surajshetty3416/pos-profile-fix

fix: Add additional condition to get_pos_profile