fix bug in user pages