fix profile page crashing.
Merge pull request #49 from yuchan/fix-profile-page

fix profile page crashing.