fix segfault if no password given