fixed bug in devise