Fix raspi logic