Fixed profile updating

Closes #52