Fixed: Wrong variable declaration (scope)
Fixed: Wrong syntax