Fixed bug: "Undefined variable: form"