fix the bug: profile = obj => profile = obj.profile