[fix] change undefined variable to the correct one
Signed-off-by:Damian Zajkowski <damian.zajkowski@rst.com.pl>