Fixed some errors with edit modal parameters