minor bugs TaskToResource