Fixed the Brewery-nullpointer error