fix bugs for layout xml