bug fixes in profile