Fixed profile changing issue