fix error when there are changes in the phase repository