bugfix in custom_tasks