Fix some minor issues
profile: Fix serveral bugs