fix box layout