fix issue with DEPOSITED flow