fix bug of devise