In fixing the fees of any fiduciary, the court shall take into consideration any violation of this probate code by the fiduciary, and may diminish the fee of such fiduciary to the extent the court may determine to be proper.