Fix NPE in auto-brewer