Fixed minimization warninigs + another missing variable declaration