Fixed transaction error bug in the needs and orders