Fixed a bug where idcode_save broke if the user pressed twice on the save button.'