Fixed rubocop violations