Fix bug: User's used_applications not being updated