Fixed bug when update dependency