fix reg count, devise locale