fixing a bug on user pages