fixed bug in installation routines