Engine: Fixing lint problems detected by rubocop