Fixed bug related to dependency