fix variable count for task