Fix bug with profiles commit

Now it updates profiles instead of the number of id... that would somehow not work.