Fix bet controller for redundant code