patch bugfix for unit ideal