fix func check

Signed-off-by: Cristian Stoica <crististm@gmail.com>