Fixed devise init issue.