fixed problem with close-to-median size transactions