fix dependencies checking