fix bug in template assignment of Depends on