Fixed wrong cast in the brewery block. Closes #441