Potentional fix for rails