forms: fix ref forms crashing