fixes edit bet bug