Fix crashes in init prompts.

Fixes #79 and #80