fix for NPE in task GUI