Raspberry Pi bug fixes