Improved the automatic resizing
Fixed completion and resizeSplits