Bug fixes when dependency exists over array modifications