Fixed favouriting function