Fixed bug that did not set repair type id