Fix for 4 rails