fixed potential bug in user profile; Closes #18
Merge branch 'userview'