fixing size filtering bug