some small bug fixes

fixxxed horizontal layout.