fixed empty form bug