Registration minifix

The registration windows does not longer cause the app to crasch after
registration