moved patch into the transaction
Merge pull request #421 from giastfader/issue_412_slow_get_user_profile

moved patch into the transaction