Fixed Rubocop warnings