Bug fix

https://github.com/plataformatec/devise/issues/3039