Fixed bug for read/write dependency lists.

Fixed initialization bug