Bugfix, resetting fields in modal