Fixed a bug in parsing dependencies