Fixed the bug of profile not editing

This is kind of magical. I still cannot understand why this works.