try to fix possible dependency errors