Fix migration problem for profiles management