bug fixes for profile and prm [MJ-842]