Add a protection for the issue with rspec