bug fix for deposit scheme