fixed undefined variable warning

Signed-off-by: plamen911 <plamen@lynxlake.org>