fixed some possible install problems