bug in devise()