fix dependencies writing