fix undefined variable showing in debug.log

fixes form hanging if dev fund