Fix category form bug