Fixed cast exceptions and solved the brewing stand problem.