Resolves bug reported by 'joshi' on the Raspberry Pi-forum