fixing bug in popular