Fix bios and layout issues