Fixes to get profile working