fixed profile updating bug #13