fixed bugs with linear and relative layout