fix linear layout implementation