fixes wrong behaviour on opening existing user