fixed errors on rPi