Correcting Ruby syntax error.