Fixed variable assignments error