Corrected rubocop syntax errors