Fix issues found by rubocop

[rubocop](https://github.com/bbatsov/rubocop)