fix bug for mechanic