fix internal server error
almost done user stats
fix internal server error