Fixed dependancy bug