fixing bios at small sizes