fixed bug with devise