Fix stupid bug with form mode being stuck in 'view' mode