workaround for NPE in UI validation in some cases