fix exit in loginview