fix dependency problem on rest