Fixed a bug while saving widgets options and forms