Fixed variable errors