Fixed incorrect handling of adding multiple edges to initial delta Q matrix