Fix terminal layout