Fixed KTrusses code