Fixed bug when saving an empty form