Fixes in profile. And other small fixes.