fix for RuboCop case in newer versions of RuboCop