Fix dependancy errors