fixed hook_unistall
added popularity normalization