Fix profile model issues.

See #13 for detail.