Fixed profiling

Signed-off-by: Davide Gadioli <davide.gadioli@polimi.it>