fixed bug in task logic tier