Fixed linux error due to missing variable declaration