Fixed some dependency errors