updated modification of Profile-Modify to prevent an undefined var notice